#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<unordered_map>
using namespace std;
int T, n;
int main()
{
    cin >> T;
    while (T--)
    {
        cin >> n;
        unordered_map<int, int> p;
        for (int i = 2; i <= n / i; i++)
        {
            while (n % i == 0)
            {
                n /= i;
                p[i]++;
            }
        }
        if (n > 1) p[n]++;
        int res = 1;
        for (auto e : p) res *= e.second + 1;
        cout << res << endl;
    }
}